package com.ttdevs.parsexml.net;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

public class URLConn implements IConnection {

	@Override
	public InputStream getResult(String urlStr) throws IOException {
		URL url = new URL(urlStr);
		URLConnection urlConn = url.openConnection();
		urlConn.setConnectTimeout(30 * 1000);
		return urlConn.getInputStream();
	}

}
